import request from '@/utils/request'

// 获取首页数据
export function index(data) {
  return request({
    url: '/index',
    method: 'get',
    params: data
  })
}


export function workbenchReportStatistical(data){
  return request({
    url:'/order/orderBasic/workbenchReportStatistical',
    method: 'POST',
    data,
  })
}


export function getCarsModel(data){
  return request({
    url:'/car/model/getCarsByType',
    method: 'GET',
    params:data,
  })
}

export function getCarModelList(data){
  return request({
    url:'/car/model/getCarModelList',
    method: 'GET',
    params:data,
  })
}

export function getCarStatusStatistics(data){
  return request({
    url:'/car/model/getCarStatusStatistics',
    method: 'GET',
    params:data,
  })
}

export function getModelList(data){
  return request({
    url:'/car/model/getModelList',
    method: 'GET',
    params:data,
  })
}


export function getCarsList(data){
  return request({
    url:'/car/model/getCarsList',
    method: 'GET',
    params:data,
  })
}

export function getCarTipMessage(data){
  return request({
    url:'/car/model/getCarTipMessage',
    method: 'GET',
    params:data,
  })
}


export function getCarInfoByType(data){
  return request({
    url:'/car/model/getCarInfoByType',
    method: 'GET',
    params:data,
  })
}


export function getOrderData(data){
  return request({
    url:'/workbench/getOrderData',
    method: 'POST',
    data,
  })
}
export function getCarData(data){
  return request({
    url:'/workbench/getCarData',
    method: 'POST',
    data,
  })
}
export function getToLoanData(data){
  return request({
    url:'/workbench/getToLoanData',
    method: 'POST',
    data,
  })
}
export function getBillFlowData(data){
  return request({
    url:'/workbench/getBillFlowData',
    method: 'POST',
    data,
  })
}
export function getOrderlist(data){
  return request({
    url:'/workbench/getOrderlist',
    method: 'POST',
    data,
  })
}
export function carRentalRate(data){
  return request({
    url:'/workbench/carRentalRate',
    method: 'POST',
    data,
  })
}
export function modelOrderRanking(data){
  return request({
    url:'/workbench/modelOrderRanking',
    method: 'POST',
    data,
  })
}
export function modelRevenueRanking(data){
  return request({
    url:'/workbench/modelRevenueRanking',
    method: 'POST',
    data,
  })
}

export function inventoryStatistics(data){
  return request({
    url:'/workbench/inventoryStatistics',
    method: 'get',
    params: data
  })
}


export function inventoryCount(data){
  return request({
    url:'/workbench/inventoryCount',
    method: 'get',
    params: data
  })
}


export function tenantStoreList(){
  return request({
    url:'/workbench/tenantStoreList',
    method: 'get'
  })
}


export function selectSeries(data){
  return request({
    url:'/workbench/selectSeries',
    method: 'get',
    params: data
  })
}


export function selectModel(data){
  return request({
    url:'/workbench/selectModel',
    method: 'get',
    params: data
  })
}


export function rosteringVo(data){
  return request({
    url:'/workbench/rosteringVo',
    method: 'get',
    params: data
  })
}

export function chedulinglist(data){
  return request({
    url:'/shift/cheduling/list',
    method: 'get',
    params: data
  })
}

export function tenantlist(data){
  return request({
    url:'/car/rank/tenant/list',
    method: 'get',
    params: data,
  })
}

export function alarmlist(data){
  return request({
    // fake:true,
    url:'/car/alarm/list',
    method: 'get',
    params: data,
  })
}

export function alertToDo(data){
  return request({
    // fake:true,
    url:'/car/alarm/alertToDo',
    method: 'get',
    params: data,
  })
}

export function alarmhandle(data){
  return request({
    // fake:true,
    url:'/car/alarm/handle',
    method: 'POST',
    data
  })
}

export function markAsRead(data){
  return request({
    // fake:true,
    url:'/car/alarm/markAsRead',
    method: 'POST',
    data
  })
}
